package com.ctsi.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctsi.core.database.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 通知表实体类
 *
 * @version 1.0
 * @author: wang xiao xiang
 * @date: 2021/8/9 16:30
 */
@Data
@TableName("mars_sys_notice")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Notice对象", description = "通知表")
@JsonIgnoreProperties(ignoreUnknown = true)
public class Notice extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    private String title;
    /**
     * 内容
     */
    @ApiModelProperty(value = "内容")
    private String content;
    /**
     * 类型（字典 1通知 2公告）
     */
    @ApiModelProperty(value = "类型（字典 1通知 2公告）")
    private Integer type;
    /**
     * 发布人id
     */
    @ApiModelProperty(value = "发布人id")
    private Long publicUserId;
    /**
     * 发布人姓名
     */
    @ApiModelProperty(value = "发布人姓名")
    private String publicUserName;
    /**
     * 发布机构id
     */
    @ApiModelProperty(value = "发布机构id")
    private Long publicOrgId;
    /**
     * 发布机构名称
     */
    @ApiModelProperty(value = "发布机构名称")
    private String publicOrgName;
    /**
     * 发布时间
     */
    @ApiModelProperty(value = "发布时间")
    private LocalDateTime publicTime;
    /**
     * 撤回时间
     */
    @ApiModelProperty(value = "撤回时间")
    private LocalDateTime cancelTime;
    /**
     * 状态（字典 0草稿 1发布 2撤回 3删除）
     */
    @ApiModelProperty(value = "状态（字典 0草稿 1发布 2撤回 3删除）")
    private Integer status;
    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;
    /**
     * 租户ID
     */
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;


}
